Adds base logic for context menu in the rules list