draw rule definition
UI changes saved in JS object