making callback optional & only fire on node click