Added renderView() method