working example index that can pull in a button