fix 'click' event handler on <div> attachment containers