Worked on add repair function in main.js