adding duration slider and loop checkbox