updated views and js