modified FormSearchActivity, building query