changed colouring logic for task cells