you can use the method in class UI.