adapt the main page