Adding methods to control when to allow editing states