added (un-)locking of data editing