Added code to enable creation of collections from search page.