updated ajax search with css and more logic