fetching json from controller