Revert external call for closing opened modals before open new modal.