add function to disable editing, resolves #879