working on vertical and horizontal scrollbar