Optimization DoF UI layout