change window load to document ready