Functionality of "send" button is working without selecting any code