Added smarter decimal widget handling