add color to show active inv, date validation