play pause functionality implemented