lint; unit failure; moved context menu bind to attachment; removed closure and scope for AttachmentMenu