parse data onInit() for templates