added initialize and render to the view