add colour code for status