gui saves history for ctrl-z and ctrl-y