Added functionality to share and edit code