Added edit lock for files