changing the chat status update to use ajax