modify queryactivity