added play/pause functionality