modify subpage switch events