add functionality to override and restore default click handler