Implemented the MenuViewController to work properly with popups.