allow onClick handler to be overwritten for customization

@mridgway