Working on buttons

need to track secondary number to revert to when newly computed state
set is smaller than previous