added callback to refresh tables