clean some code in FileController