add callback for webodf refresh function, fixes for emails