Setting up the view handlings