moved routes.js into app directory