error and search templates