Add window load option