updated rule ui to support delete