function add  after search btn click