moved json provider inside controller