Fix attachments
Fix condition string building
.
Fix finding the first appropriate default view
Updates