cleanup for viwes