update code js for align button search