Angular directive setup and scrolling fixes