Protected the edit functions