refactor a bit, add additional condition so absent turns red if you click it for the first time