add option to specify batching size from widget
add option to specify batching size from widget