moved query action handler to parent route