implement ad click action; also added a test