remove ui dialogs after close