update css and functions