trigger before-change event if popstate event is triggered.