new window and overlay codes