changes to bot manager.

still bug in related search (loop on if only 1 related search to click
on links to same page)
bug in metrics for bot manager.