Register ui in adapter init method