Changed event handling to POST method
Added event handling and text message counter