created search funtionality and results page