getting reference to UI