long polling and message display working