added json call and made it model in ember