Updated file tree to handle several open contexts