added templates for gui-connecting and result-dispatching