add event trigger on paragraph clicked