Added extend function to library
Working on a common ui base class