create base class for ui object