add id for the components in search page and get the values