Fix menus and detect whether we're already in the app and toggle appropriately.