wrote the scrollbar portion from scratch