Add saving of plan and segments on sharing a plan