update css, close event