added search for templates