Created new application controller and fixed routes.rb