Moving rendering from controller to view (report)