Add methods to deal with alert buttons.