tpl editor + github integration & fixes