handle active page change event