gui tab1, reformat code