Updated setEditing: method