Formatting UI codes (Step II)