auto highlighting fields at all the right times