matching selected row colours to the library table.