added print widget debug to send function