Optimized all UI functions