fix redirect after save a file + tiny changes