change the dialog layout