must ache added to handle template rendering.
saving data to firebase fixed.