added grid slection, changed color on lines