add routes, rename and refactor routes.rb