document sharing functions implemented