improving widget loading