added render method as setview is not handling render