saving tmp file fixed, redirecting to updated file editing