ends the view