removed unnecessary rejoining of classes in add or remove if they already have or dont have the class, respectively