Move appending the checkbox after the API call, so as to ensure that the...

... checkbox performs the task as soon as it appears.