Added setUI to Component class