setting the custom scrollbar functionality