puts animation scroll into a separate function, adds functionality to arrow link