Made changes to deleting the container from list of containers in the session

Just searched through the list and did a splice at the location
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice