updates in views and js code