format gui main frame