Added support for widget with S4