Fixed bug where search was not being triggered due to missing namespacing of function