Move sheet to main window, open-close actions in appdelegate