set dirty property when load record