updated index with buttons