use settings to persist selected template