moved details button to the dialog bottom