implementing playback control