Added the "widget" structure with some functions