Finishes rewriting widget using require