refine gui