update styles and javascript