fixed new window type
removed alert