Updated index with onclick