update CSS and functionality