The Welcome page holds when the session tree is interacted with. Changed a
few for-loops to for-each loops for readability.