added various lock options for deletion, moving and value editing
slight refactoring