creating front end for chat