update css and text