bugfixes regarding reaction of modal windows when back button is clicked