add resize event
redraw scrollbars on resize event
refactor resize event