fix blank home bug and add in page index