solved routes and ajax calls