Added event listeners for the send and download buttons.