add some comments about updating CSS properties
remove unused "beingEdited" event
re-order classes & functions