Edited templating to use html5 history to use same links in pages with and without ajax