minor refactoring, dragging event binded
added rule changing UI