move rule events to rule.js
html/event changes to schema html