complete first version of udpated search and search result page: