initial coding for widget