adding edit end-point