Enhanced searching for templates