remove unused dependencies in views.