Added revert behaviour to gui