add widget validation feature