called render function from initialize for views