preparing the view