prevent page refresh on chat submit, take 2