site-attend: re-add attenddialog function, and it works;