use isdirty method provided by fck to check for changes