fix redirecting after edit on web page