added timeout for chat window