pairing-dialog: use a template to create the UI