Allow popup buttons to be disabled on the fly.
Multiclick protection in confirmation dialog.