Switch color of box based on status