Store widget constructors so they can be dynamically created later.