The return type should be a widget not a widget?
In the delete code, do you send the event?
Do you need just an amount of digits?