add returnUrl to edit view, closes #20