Adjust send button function