Close modal on browser back button click