added widget type selection and customisation with counter type