share dialog working