Added code to handle clicking the Send button