Properly fixed hiding when dialogs pop