add event listeners for play/pause