Simplified widget loading code in widgets page.