Basic framework of grab and scroll