using scroll to animation

quick fix for incorrect function reference

correctly calculate scroll to position

tidying up some spacing issues