fix play, pause class adding bug