cant figure out why dynamic onlcik is not working