Controls buttons for Dialog now work