Lazy widget initialization to improve performance