work on the dialog to enter custom display rules