fixed double firing of events. templates now integrated and working with add/remove buttons fully. next: echo the actual json in the output