Optimized for object oriented GUI implementation