copy templates from backend to frontend