Added constructor function for widgets class

This constructor accepts a MozmillController from which we
operate on.