added scroll bar functionality