code refactor. Colour coding build runs based on status