templating fun for SPA in the future