preparing the views