Remember template filename for saving.
Disable GUI while loading source from template.