relayout the UI widgets