Main window and menu