fixed bug in inserted widgets.  Fixed bug in send_file for widgets