Close modal and refresh after the message has been sent