Updated detect min and max widgets.