working on PenDialog