Moved events into FileController class
Files can now be opened