added window eventListener and scrollIntoView