Fixed header compiler warnings, fixed a typo in the widget controller