update for class and UIView