code cleanup, added lever and repeater, added popup menu to edit
state of widgets, added support for rotating widgets