pulled out widget code from betaq main to public widget src