Works, added index with buttons