fixed view for snippet in urls
changed how json/api works