home index function add