Added render method to the view factory class