Preserve window and layout state

-preserve window state
-preserve layout state(panels)
-moved layout to Layout class
-File -> Save as...
-Fixed Menu disabled menu item bug