Added a new constructor for default widget behaviour