add callback to documentation