update sessions path and cleaned up manage js