updated views to use jsonobj