Add callbacks to xml file