Move widget code to view to mimic what a web form would be like