implementation of single selection mode for attachments