update java file for ui section