update styles and events