remove modal dialogs after they're closed