Toggle for Iframe or PopUp in Pages

Toggle for Iframe or PopUp in Pages

So the default behavior for the edit button in embeded tables on a custom page is to load the edit form inside the iframe/table. If one has multiple tables on a page, some of these tables are only 100px hight. To load the form in an iframe makes for a horrible user experience when the iframe/form is only 100px height with a scroll bar. 


The only way to get around this is to create a custom button/action that would edit the form in a pop up. Now I have over 20 tables in my application so now i have to hand code 20 functions to load the edit screens of all these tables in a pop up. 

My feature request is that there should be a toggle button that allows us to select how the edit and view buttons are handled. Load in IFrame or Loan in PopUp.