Added enabling/disabling vertical and horizontal scrolling