Added global UIManager
Fixed blocking game loop when using TextBox