Better window focus management, better refresh threading and intervals