Added stopPropagation/cancelBubble to close popup button