adapt history-back