added createtodo method to animation callback