added WaitFor to UiComponent

Fixes #101