fix issues in routes.rb