added logic, CSS to show status color