revert button works, controller js do not
reversion button works but only on most recent substitution