added better user interface for pen-editting