add stopped callback