update css for object