refine ui layouts