add and remove progress_bar play and pause classes when necessary