fixes 404 ajax request on page load, starts clear route functionality