Take care not to register button handlers at page level multiple times.