Added save and revert functionality
Implemented save and revert functionality