added scroll and pan