implement rules modal
add rules