optimized widget rendering