added ajax and function of search