capitals details not 100% functional, getting all data instead of only the one clicked