added display none to template for better safari support