handling opened/closed attachments/bilags