Modified toolbarbutton module to avoid warning in console