fix header generation template problem with buttons