Move setting of views to main.rb