Added render view method