Fixed issue with click listener handling for the send and download buttons.