Fixed enabled state of buttons on duplicate view
Replaced menu to create new reference with window