merge index and search into single uiComponent