add function to get a widget in hierarchy.