update main page and config file