hide modal dialogs after success