Fixed error in patient portal when closing dialogs.  Added default encounter template and setting SMTP hostname for fax extension.