generalFuncs sending search query and type now