added a republish button to templates