removed callback and instead, used main.js