rating and rating color indicator in joblist; refactored color function