Remove unwanted print statement from view contstructor