added buttons to dialog