added the play/pause function