toggle class before appending