add admin file edit function