added chat-window
changed deprecated firebase api method to new one