restructure ui