Save before main change on mode management