updated the way the app changes the url parameters to prevent reloading
moved location search.location