added api version to the widget