fixes for multiple tes support, better "wait for view"
fixes for dialogs