fixed window::parent and added window::children