add unflatten into search box