form containing Search query is now sent to controller function (generateQuery)
for further action