adding record rule ui