Change WidgetLookup so that parent is found just once

If the parent is not specified it is found automatically. The problem is, that this is done in wait loop what is unnecessary.