I took InputScrollFrameTemplate code from retail and put it into xml file in my addon. Seems to work. But still messy.