adding a new method for the send button