doing the view stuff