refactor routes and files using REST convention