refact code AdminController not edit file template and view