Implemented scrolling and firstLine secondLine functions