added edit page, auto-email confirmation func