build the home page as index