small adjustments to views and js

small changes to views to fix some bugs, and small change to classtracker.js to have it format the same