update batwidget and add lua autocmd