added button in RulesEditor for testing the dialog