Communicating to user that content is associated with a specific record?

Lets say a main page provides navigation to two sections: Doing X and Doing Y. Doing X is associated with a single record, however, Doing Y is associated with zero to many records. Upon clicking Do Y, they will navigate to the last viewed Y page, and if there currently aren't any Ys, one will be created. Alternatively, they can click one of the individual Ys in the "List of Ys".

Upon arriving at the Y1 page, the user can do their business. They can also go to Do X, navigate to another Y, add a new Y, or delete the currently viewed Y. There is also extra content associated with Y1 which typically they will not wish to view or edit. I've used Open Dialog Module for Y1 for them to be able to access.

This dialog is getting kind of busy, and I wish to get rid of it and do things differently. Without using a dialog, how can I allow the user to view and edit content, and know it is associated with a given record (i.e. Y1)? How must the "Do X Menu Do Y Menu" change to support this?

mockup

download bmml source – Wireframes created with Balsamiq Mockups