share dialog work