Implement History.js logic for "Cancel" action