Implemented share api
Fixed bugs with sharing
fixed hide -> reset issue