added random coloring of lines and enhanced paging functionality