tweaking play and pause functionality