add pause/play toggle functionality