solve some mistakes in views