remove hiding of main window and add hiding to annotation panel
remove hiding of main window and add hiding to annotation panel