Add cookie support to remember last edit functions