close dialogs when opening new ones