main page is constructed.