Code for adding badge to node added