templates generate closing buttons