fixed query urls in app.js