nit: please add a comment explaining "removing only once the action is finished to prevent starting a new action"