made the flyout hiding itself after map creation