add attachment field behavior