modify java file for UI changed