Adding on click listener for custom view

Fixing issue #9 and #14.
Merge pull request #15 from nicolausYes/patch-2

Adding on click listener for custom view