should be in a callback of $remove()