build the home pages