passing the click call back optional