add window's load and img's load