improved scroll bar setting