try when window ready