integrate Pen Mode support