Set new definition and new functionality to widget

Set new definitions and new functionality to widget
set new variable and fixed typos