Added a play/pause functionality