permalink and sharing functional