make some changes for keeping track of records
fixed mistake in dashboard.js
madcleaned up the comments