add callback function to reload()