Added an Intent  and EditText object to sendMessage method