added puts to view.rb