add dashboard, fix some bugs