finishing up search template