Add select function to index page. First step