Reformat UI file