Analyse user's query
Adds buying from query field
Check query.type and gives focus on home