fixed e.target bug, added scrollIntoView