allow search form visibility to be controlled on the template