class based view system, html + json