add deferred event to ajax search