making associations sortable and showing delegated fields for units