adding actions to the main.js