Finally got the scroll bar working properly.