Added new window and solved Close crash.