locating scrollbar in the right location