Adding on click listener for custom view

Fixing issue #9 and #14.