check dom id existence bug fix
Changed domain to currentHostName
Allowed search to hide approved records and made sure they are updated in memory