edit sharing code