cosmetics
refactor handlePan for ribbon from noteview into viewcontroller