better state changing and removecontact
add ChatWindow directory