Add location and sharing function