made changes to template to set it up for clien't prefs