update display and css