Adding search box on the main page and error page