loading templates from server