frontend for chat