update server.go and templates