changed height function, added scrollbars