remove useless name dict
remove ChatWindow from registry