added adapter type and scroll bar