remove templates, use JSON responses