add menuitem to close the app