Pass widget to the foreignTableCallback