changed ta max text check to test for dirty instead of a value