Update HTML widget layout