refactor attachmentcollection button