add gradient color for cell index