setting up chat post

fixed chat post, so it doesnt go to new page every time.
fixed chat not refreshing
fixed CLI not refreshing