End edit when hidding feature's layer