add classes for buttons to dialog