enabled selecting of the chat window when chatWindow or friendLi is clicked