corrected idDirty() to isDirty()