Move scrolling to a directive