More work on the new widgets and creation of new global functions class.