initialize appwidget when appwidget popup is created