update user and index page