1. -Refactor window, remove useless visit interface.