user controller and index page