Fixed send button handler