redering as json and not as html