ref: forgot to make onclick events dynamic