update callback functionality