refactor the home page and fix the bug that I have use wrong of the splice