modify save share functionality