sessions controller and js added