added size change and fitted the scrollbar