chance preferences button to icon button.
restructure ui
no need to hide top window commands when flyout is open.