Added close current file functionality