prevent default submit for chat