fix bug in editing; update redirect after editing