added parameters to method tryRender() in View