wip - remove some duplications; add rects
wip - scrolling by clicking the scroll bar works