adjust scrollbar and buttons