updating the main page