added command dependency check for widgets