Updating buttons and layouts for the dialogs.