cleaning up some views and js