refactors routes.rb