commiting all changes after adding the callback handler