function button formatting