Modify index page when connect