Refactored ajax method to NgssmViewModel