deleted unneeded code
final fixes to widget code