Preparing buttons and links for the dialog forms.