Refactored the whole app because the MEAN stack is not very well organised