add scrollbar functions