update for index and admin page