added re-template debug form