Add the tie functionnality + update design + cleanup main.js