update to use new way to specify clickback functions