allow to set onclick handler as option