view functions transmit jsons to templates