Programming behaviour of the scrollbar and linking it to the staff.