add outer class when editing