updated index page
added comment to user controller for future reference