Event handler targets card div instead of p tag on click