add code to change class to 'dirty field'