Hide modals on page change