implements scriptwidget's functions and adds icons