switched to using addGadget() in filecontent.js