Formatting UI codes (Step IV)