remove window onloading check