'Ui' was not declared in this scope

Could that be the answer?