basic templating working, data not being saved