initialize the view