Rerouted with resource. working on edit function