stop page switching when another effect