ajax and search draft