implemented search and results pages