scroll bar visibility choice added

Some simple logic was added to define if vertical or horizontal scrollbars should be added