fixed problems with the view