Update main_controller.rb

realized these lines we're duplicated