Made dialogs modile(have to close before returning to main screen)