Update share function