Refactors the widgets into the library project