Updated component to remove content in inputbox after sending a message