trigger handle activation based on query