main edit save