implement zoom and scroll.