targeting wrong element on click