fixed errors in the views