Add `saved` boolean to prevent loss of work

add exit method in Circuit
add right click dragging ability