divide index page to header and footer