finish the main page and the connections