setUI method