updated routes and views and used rubocop to clean up