dismiss modal after sharing