refactored share/unshare dialogs