updated flow of routes in express.