dismissal of modals on success