Update config and template