fixing routes.rb bugs