`OnClickListener`s are defined in `OnShowListener` below to prevent dialog from closing after button clicks.