changes in ui.java