added some defines to the template and worked on the search feature.