flipped class removed after two clicks