share dialog refactor