added more code for search, webactions and initialization