Changed File to work

Made editor take in an id