controll whether scroll bar is shown or not by assign