Fixed the history/backbutton with the AJAX