add sleep(400) before upload window is active