ad type added in search-list and simplified some functions with jquery. temporary lines in HomeController