Fix transition bug; add scrollIntoView.