beforeHistoryChange event to follow beforeChange convention