finish basic chat functionaliy