Working on chat

localhost fix too