Popup window support for sharing adding popup attributes

Added popup attributes to support popup window for sharing, by defult popup will be false.
To close issue #35