Add some functions for GraphController and OpenFile function