finish constructor in uielement