clean up view class