template for spa application