Added stack view for template