Init modal when an attachment is added