adding the ability to lock editing