add Pen Mode support