add call init method for widget