Changed some ifs to ternary
timer stuff in progress. Timer causes hrs to change colour.