Respect browser history when opening ajax modals