Added codes for homepage, not good but works.