refactored the users index page to use a partial page and the render method