reimplemented revert button