adding function pointers for widget inspection.