cleanup View class