setButtonBehavior for AlertDialog. Close #329