added three P click events