Handling response for share dialog