More correct widget initialization