fix minor problems in views