Update share templates and share function