Added the template for search, and created the base controller