move user controller to external file