fixed adding and removing styles