Add AUTO_REFRESH to save state for the undo stack