Printing the view on a view change