remove viewpatterns