scrollbar related stuff to make it all work properly