created Utils.java and optimized WidgetProvider