update associations for nested attributes