template for gails