move main.rb into controllers/