update css method