Remove all style attr when closed