generated the index page for users