set higher z-index for popup
fix multiple button problems

The popup was opened multiple times when more than
one button is present on the page.