added puts instead of print and other view method updates