Removed debug elements
Corrected display lag due to setInterval when creating a new rule