Updated CustomButtonDialog so that duplicate strings in the buttons input are ignored.