Moving render view code to a method