merge home and list function