add transition control: play and pause