Add MainController file
Rewrite function in UserController file