[cogenda-web] - Refactor code