remove redundant split code in home view