Added more methods to the uielement class.