update view and class