refine ui layout