update styles and functionalities