change funtions in dashboard.js
little left
almost finished
rewrite index.html
just left one refresh bug