update the css of some components