added navbar to top
added second check to deleteing session key