add blank search template, handle case of no query