Modified template for SPA model