setting up toggling between live and pending

still need to add manual setting of lastEdit when editing