Updated view and factory helper to allow className option in factory settings