improvements on widget rendering architecture