added routing and browser history by location