Chat frontend work, some other stuff