update the main page